package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.indusfo.spc.common.pojo.BasePojo;

import java.util.Date;
import java.util.List;

/**
 * @Author liub
 * @Date 2019/12/6 8:50
 * @Version 1.0
 */
public class BatchRepair extends BasePojo {

    /**
     * 批次流程维修工序段ID
     */
    private Integer batchRepairId;
    /**
     * 批次ID
     */
    private Integer batchId;
    /**
     * 维修ID
     */
    private Integer repairId;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;
    /**
     * 说明
     */
    private String remark;
    /**
     * 数据状态
     */
    private Integer dataState;

    /*                                               新增字段                                             */

    /**
     * 维修名称
     */
    private String repairName;
    /**
     * 维修类型ID
     */
    private Integer repairTypeId;
    /**
     * 维修类型名称
     */
    private String repairTypeName;
    /**
     * 任务单流程维修工序集合
     */
    private List<BatchRepairFlow> batchRepairFlowList;
    /**
     * 任务单流程维修采集参数集合
     */
    private List<BatchRepairDete> batchRepairDeteList;
    /**
     * 维修工序段明细ID
     */
    private Integer repairDetailId;

    public Integer getBatchRepairId() {
        return batchRepairId;
    }

    public void setBatchRepairId(Integer batchRepairId) {
        this.batchRepairId = batchRepairId;
    }

    public Integer getBatchId() {
        return batchId;
    }

    public void setBatchId(Integer batchId) {
        this.batchId = batchId;
    }

    public Integer getRepairId() {
        return repairId;
    }

    public void setRepairId(Integer repairId) {
        this.repairId = repairId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public String getRepairName() {
        return repairName;
    }

    public void setRepairName(String repairName) {
        this.repairName = repairName;
    }

    public Integer getRepairTypeId() {
        return repairTypeId;
    }

    public void setRepairTypeId(Integer repairTypeId) {
        this.repairTypeId = repairTypeId;
    }

    public String getRepairTypeName() {
        return repairTypeName;
    }

    public void setRepairTypeName(String repairTypeName) {
        this.repairTypeName = repairTypeName;
    }

    public List<BatchRepairFlow> getBatchRepairFlowList() {
        return batchRepairFlowList;
    }

    public void setBatchRepairFlowList(List<BatchRepairFlow> batchRepairFlowList) {
        this.batchRepairFlowList = batchRepairFlowList;
    }

    public List<BatchRepairDete> getBatchRepairDeteList() {
        return batchRepairDeteList;
    }

    public void setBatchRepairDeteList(List<BatchRepairDete> batchRepairDeteList) {
        this.batchRepairDeteList = batchRepairDeteList;
    }

    public Integer getRepairDetailId() {
        return repairDetailId;
    }

    public void setRepairDetailId(Integer repairDetailId) {
        this.repairDetailId = repairDetailId;
    }
}